package com.eonmind.common.provider.entity.ai;

import com.eonmind.common.contract.enums.DelEnum;
import com.eonmind.common.contract.enums.StatusEnum;
import com.eonmind.common.contract.enums.ai.AiDrwaPlatformTypeEnum;
import com.eonmind.common.contract.timer.Timer;
import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.annotation.index.MongoIndex;
import com.mongoplus.enums.IdTypeEnum;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.FieldNameConstants;

@CollectionName("aiDrawPlatform")
@FieldNameConstants
@Data
@ToString
public class AiDrawPlatform {
    @ID(type = IdTypeEnum.AUTO)
    private Long id;

    /**
     * 平台类型：MJ、等
     */
    @MongoIndex
    private Integer platformType = AiDrwaPlatformTypeEnum.MJ.getCode();

    /**
     * 平台地址
     */
    private String baseUrl = "";

    /**
     * 平台秘钥
     */
    private String apiKey = "";

    /**
     * 状态
     */
    private Integer status = StatusEnum.OPENED.getCode();


    /**
     * 创建时间
     */
    private Long createTime = Timer.currentTimestamp();

    /**
     * 更新时间
     */
    private Long updateTime = Timer.currentTimestamp();

    /**
     * 删除状态
     */
    @MongoIndex
    private Integer del = DelEnum.UN_DEL.getCode();


}
